package com.gym.baselib.utils

import com.blankj.utilcode.util.SPStaticUtils


object CacheUtils{

    fun getStringCache(key:String,default:String = ""): String {
        return SPStaticUtils.getString(key,default)
    }

    fun getIntCache(key:String,default:Int = -1): Int {
        return SPStaticUtils.getInt(key,default)
    }

    fun getBooleanCache(key:String,default:Boolean = false): Boolean {
        return SPStaticUtils.getBoolean(key,default)
    }

    fun save(key:String,value:String?){
        SPStaticUtils.put(key,value)
    }

    fun save(key:String,value:Int){
        SPStaticUtils.put(key,value)
    }

    fun save(key:String,value:Boolean){
        SPStaticUtils.put(key,value)
    }
}
